home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_06
/
2n06066a
< prev
next >
Wrap
Text File
|
1991-01-12
|
3KB
|
83 lines
#include "windows.h"
#include "stdwin.h"
StdWin MENU
BEGIN
POPUP "&Run"
BEGIN
MENUITEM "&Restart", IDM_RESTART
MENUITEM "E&xit", IDM_EXIT
MENUITEM SEPARATOR
MENUITEM "&About stdwin...", IDM_ABOUT
END
POPUP "Fo&nt"
BEGIN
MENUITEM "&Select a Font...", IDM_SELECTFONT
END
POPUP "&Options"
BEGIN
MENUITEM "&Text Color...", IDM_TEXTCOLOR
MENUITEM "&Background Color...", IDM_BACKGROUNDCOLOR
MENUITEM SEPARATOR
MENUITEM "&Opaque Background", IDM_OPAQUE, CHECKED
MENUITEM "Trans&parent Background", IDM_TRANSPARENT
END
END
Colors DIALOG LOADONCALL MOVEABLE DISCARDABLE 12, 21, 119, 71
STYLE WS_DLGFRAME | WS_POPUP
BEGIN
CONTROL "OK" 1, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 10, 52, 41, 14
CONTROL "&Cancel" 2, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 63, 51, 41, 14
CONTROL "&Red" 3, "static", SS_LEFT | WS_CHILD, 10, 5, 18, 8
CONTROL "", ID_RED, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 39, 3, 32, 12
CONTROL "&Green" 5, "static", SS_LEFT | WS_CHILD, 10, 20, 26, 8
CONTROL "", ID_GREEN, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 39, 18, 32, 12
CONTROL "&Blue" 7, "static", SS_LEFT | WS_CHILD, 10, 35, 21, 8
CONTROL "", ID_BLUE, "edit", ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 39, 33, 32, 12
END
SelectFont DIALOG LOADONCALL MOVEABLE DISCARDABLE 10, 25, 180, 95
STYLE WS_DLGFRAME | WS_POPUP
BEGIN
CONTROL "OK" IDOK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 121, 53, 45, 14
CONTROL "&Cancel" IDCANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 122, 71, 45, 14
CONTROL "Typeface:" 3, "static", SS_LEFT | WS_CHILD, 6, 6, 44, 8
CONTROL "" ID_TYPEFACE, "listbox", LBS_NOTIFY | WS_BORDER | WS_VSCROLL | WS_CHILD, 6, 19, 65, 65
CONTROL "Size:" 5, "static", SS_LEFT | WS_CHILD, 79, 7, 29, 8
CONTROL "" ID_SIZE, "listbox", LBS_NOTIFY | WS_BORDER | WS_VSCROLL | WS_CHILD, 80, 19, 32, 65
END
AboutBox DIALOG 22, 17, 144, 75
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
BEGIN
CTEXT "Microsoft Windows" -1, 0, 5, 144, 8
CTEXT "Standard I/O Application" -1, 0, 14, 144, 8
CTEXT "Version 3.0" -1, 0, 34, 144, 8
DEFPUSHBUTTON "OK" IDOK, 53, 59, 32, 14, WS_GROUP
END
COMMAND DIALOG LOADONCALL MOVEABLE DISCARDABLE 51, 69, 210, 54
CAPTION "Command Line"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_POPUP
BEGIN
CONTROL "", ID_EDIT, "edit", ES_LEFT | ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP | WS_CHILD, 46, 12, 156, 13
CONTROL "OK", ID_OK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 48, 32, 50, 14
CONTROL "Cancel", ID_CANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 122, 32, 50, 14
CONTROL "Grep", ID_TITLE, "static", SS_CENTER | WS_CHILD, 2, 15, 43, 8
END
COMMANDPARSE DIALOG LOADONCALL MOVEABLE DISCARDABLE 88, 52, 95, 99
CAPTION "Command Line Parser"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
BEGIN
CONTROL "", ID_LISTBOX, "listbox", LBS_NOTIFY | LBS_SORT | LBS_STANDARD | WS_BORDER | WS_VSCROLL | WS_CHILD, 7, 21, 80, 65
CONTROL "", ID_PATH, "static", SS_LEFT | WS_CHILD, 11, 7, 44, 8
END